package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户mapper接口
 */
@Mapper
public interface IUserMapper extends BaseMapper<UserBean> {
        public void addRole(@Param("userId") Integer userId, @Param("roleId") Integer[] roleId);

        public void updateRole(@Param("userId") Integer userId,@Param("newRoleId") Integer[] newRoleId);

        public void del(Integer userId);
}
